//
//  scanCodeViewController.m
//  dongfengTest
//
//  Created by wxt on 2021/3/17.
//

#import "ScanCodeViewController.h"

@interface ScanCodeViewController ()

@end

@implementation ScanCodeViewController

-(void)viewWillAppear:(BOOL)animated{
    
    self.navigationController.navigationBarHidden = NO;
}
-(void)viewWillDisappear:(BOOL)animated{
    
    self.navigationController.navigationBarHidden = YES;
}
- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.view.backgroundColor = Wcolor;
    self.navigationItem.title = self.requstScanStr;
    [self.navigationController.navigationBar setTitleTextAttributes:@{NSForegroundColorAttributeName:[UIColor blackColor]}];
    
    UIButton * black = [UIButton createBtnFrame:CGRectMake(0, 0, 18, 18) title:@"" bgImageName:@"fanhui" action:^(UIButton *button) {
        ;
        [self.navigationController popViewControllerAnimated:YES];
    }];
    UIBarButtonItem * leftItem = [[UIBarButtonItem alloc]initWithCustomView:black];
    self.navigationItem.leftBarButtonItem = leftItem;
    
    
    //
    [self addUIView];
    
    
    // Do any additional setup after loading the view.
}
-(void)addUIView{
    
    
    //  tishi_       chenggong
    tklImgView * requstImg = [tklImgView imgViewWithFrame:CGRectMake(kWidth/2-40, kNavBarHeight+100, 80, 80) img:self.imgStr];
    [self.view addSubview:requstImg];
    
    
    TKLlable * signLab = [TKLlable labelWithFrame:CGRectMake(20, CGRectGetMaxY(requstImg.frame)+20, kWidth-40, 35) text:self.requstSign textColor:Bcolor font:Font_6(14) textAlignment:Textcenter backgroundColor:Ccolor];
    [self.view addSubview:signLab];
    
    
}
/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
